package cn.cdutetc.foxwatch.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

<<<<<<< HEAD
import java.time.LocalDate;
=======
import java.io.Serializable;
import java.time.LocalDateTime;
>>>>>>> f0dd41dd48d79067fa2de22e427243c250479df2

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
<<<<<<< HEAD
@TableName("demo_info")
//@Schema注解用于生成接口文档，可有可无
@Schema(name = "DemoPojo", description = "样例pojo")
public class DemoPojo {
=======
@TableName("demo")
@Schema(name = "DemoPojo", description = "样例pojo")
public class DemoPojo implements Serializable {
>>>>>>> f0dd41dd48d79067fa2de22e427243c250479df2
    @TableId(value = "id", type = IdType.AUTO)
    @Schema(name = "id", description = "主键id")
    private int id;
    @Schema(name = "name", description = "名字")
    private String name;
<<<<<<< HEAD
    @Schema(name = "createTime", description = "创建时间")
    @TableField(value = "create_time")
    private LocalDate createTime;
=======
    @Schema(name = "age", description = "年龄")
    private String age;
    @Schema(name = "createTime", description = "创建时间")
    @TableField(value = "create_time")
    private LocalDateTime createTime;
>>>>>>> f0dd41dd48d79067fa2de22e427243c250479df2
    @Schema(name = "updateTime", description = "更新时间")
    @TableField(value = "update_time")
    private LocalDate updateTime;
}
